using System;
using System.Collections.Generic;
using System.Text;

namespace Fieldbook.Entities
{
    public class StorageTranaction
    {
        private long? storageTranactionID;
        private StorageTransactionType transactionTypeID;
        private DateTime date;
        private long operatorID;
        private long resourceID;
        private decimal pricePerUnit;
        private decimal units;
        private decimal totalAmount;

        public long? StorageTranactionID
        {
            get { return storageTranactionID; }
            set { storageTranactionID = value; }
        }

        public StorageTransactionType TransactionTypeID
        {
            get { return transactionTypeID; }
            set { transactionTypeID = value; }
        }

        public DateTime Date
        {
            get { return date; }
            set { date = value; }
        }

        public long OperatorID
        {
            get { return operatorID; }
            set { operatorID = value; }
        }

        public long ResourceID
        {
            get { return resourceID; }
            set { resourceID = value; }
        }

        public decimal PricePerUnit
        {
            get { return pricePerUnit; }
            set { pricePerUnit = value; }
        }

        public decimal Units
        {
            get { return units; }
            set { units = value; }
        }

        public decimal TotalAmount
        {
            get { return totalAmount; }
            set { totalAmount = value; }
        }

        public enum StorageTransactionType : byte
        {
            Buy,
            Sell,
            None
        }
    }
}
